package com.acsior.hibernate.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.dac.impl.hibernate.vo.HibernatePersistantIntegerIdVO;

/**
 * TabularList entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "tabular_lists")
@GeneratorKey(tableName = "tabular_lists")
public class TabularListVO extends HibernatePersistantIntegerIdVO {

	private static final long serialVersionUID = 3878770000205965224L;

	@Column(name = "from_value", nullable = false, precision = 10)
	private double fromValue;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "price_list_id", nullable = false)
	private PriceListVO priceList;

	@Column(name = "tariff_value", nullable = false, precision = 10)
	private double tariffValue;

	@Column(name = "to_value", nullable = false, precision = 10)
	private double toValue;

	/** default constructor */
	public TabularListVO() {
		super();
	}

	/** @return the fromValue */
	public double getFromValue() {
		return this.fromValue;
	}

	/** @return the priceList */
	public PriceListVO getPriceList() {
		return this.priceList;
	}

	/** @return the tariffValue */
	public double getTariffValue() {
		return this.tariffValue;
	}

	/** @return the toValue */
	public double getToValue() {
		return this.toValue;
	}

	/**
	 * @param fromValue
	 *            the fromValue to set
	 */
	public void setFromValue(double fromValue) {
		this.fromValue = fromValue;
	}

	/**
	 * @param priceList
	 *            the priceList to set
	 */
	public void setPriceList(PriceListVO priceList) {
		this.priceList = priceList;
	}

	/**
	 * @param tariffValue
	 *            the tariffValue to set
	 */
	public void setTariffValue(double tariffValue) {
		this.tariffValue = tariffValue;
	}

	/**
	 * @param toValue
	 *            the toValue to set
	 */
	public void setToValue(double toValue) {
		this.toValue = toValue;
	}
}